fixes utf-8 char problems