clear some utf-8 edge cases