Fix file encode