Fix file encoding for patches