use String#encode instead of the deprecated iconv
ruby 1.8 fallback