Convert the string to UTF8. Write the length of the UTF8 version to the stream with major type UTF8_STRING, then the UTF8 bytes.
String.
Writer.
Convert the string to UTF8. Write the length of the UTF8 version to the stream with major type UTF8_STRING, then the UTF8 bytes.