fix surrogate pair error