fix bug on the search field: cannot accept surrogate pair character.