#14 unify Unicode Encoding judgment logic