Use String#encode if usable instead of iconv

Iconv was removed since Ruby 2.0.
String#encode was added since Ruby 1.9.
Merge pull request #18 from myokoym/use-string-encode

Use String#encode if usable instead of iconv

Patch by Masafumi Yokoyama. Thanks!!!