change encoding of the file