sometimes isprint() fails and a glyph is printed.