Replaced iconv for string#encode, per issue #28.