[#2250] Reimplemented Iconv with calls to String#encode