An attempt to fix UTF-8 problems