Replaced String#encode by Iconv methods.