A few commits that I made to get the library to work in Ruby 1.9.3

Probably the most interesting is the one that fixes an Iconv deprecation warning in Ruby 1.9.3, although it looks like someone has already included something similar in #5.