Fix file encoding for special chars