utf8 refactoring