I think this should be the file system encoding, not external: http://www.ruby-doc.org/core-2.1.0/Encoding.html#class-Encoding-label-Filesystem+encoding