Fixed bug in file encodings; core/file_io.lua
This fix was repackaged into 6.6 beta.