change the encoding format of files