Add encoding information to the file.