- this should fix the rare bug for some non-Latin unicode blocks, simplify some code, and possibly improve performance a bit