Change encoding of file