> The encoding of a string should never cause a comparison to fail when the two strings are equivalent except for the encoding.
You'll have to admit that the encoding is a property of a string, just like the content itself. As always, you as a programmer are bound to know both of these properties to have predictable results. To compare two strings of different encoding to one another, you'll have to find a common ground for interpreting the data contained in the string.
If you don't want or need that, then all you have is a "string" of bytes.