support ruby 2.0

remove iconv and use built-in encoding