fixed bug with surrogate pairs