Replace internal utf8 methods with StringUtils.