Added encoding to file.