fix encoding of file