The length passed to this constructor is the number of bytes, i.e. char elements of the given string, not "characters" in the usual sense of the word.
The length passed to this constructor is the number of bytes, i.e. char elements of the given string, not "characters" in the usual sense of the word.