remove iconv require
Define EncodingError unless it's defined already

Neither JRuby not Rubinius defined the EncodingError exception class,
so for now lets define it ourselves. Probably figure out a better
way to get around this