The name is expected to be close to the subject format commonly used by OpenSSL, for example
/C=AT/L=Vienna/CN=example.com/emailAddress=user@example.com. The function does its best to be lenient
on deviations from the format, object identifiers are case-insensitive (e.g. cn is the same as CN,
whitespace at the start and end is stripped and the subject does not have to start with a slash (/).

But note that it’s still easy to trick this function, if you really want to. The following example is
not a valid subject, the location is just bogus, and whatever you were expecting as output, it’s
certainly different: