Fix file encoding handling.