Fix utf-8 helper method.