Heuristics to recognize the unknown glyphs for toUnicode

Attempt to address #4548