refactor UTF-x checker