use String#encode instead of the deprecated iconv
ruby 1.8 fallback
Merge pull request #5 from rradonic/master

the iconv library is deprecated in ruby 1.9.3