recursively changes the encoding of files