the writeGlyphToString will still return a unicode string, like it's always done. However, in the writeGlyph method we can call a private _writeGlyphToBytes and write UTF-8 bytes directly instead of decoding them, then re-encoding them as we write to the file.