Fix for writing unicode glyphs.