made the char to glyph mapping a bit more reliable