Removed ICONV dependancy

replaced with string.encode for Ruby 1.9.3 compatibility