Support for ruby 2.0

Remove iconv and use built-in encoding.