Oh, and at the top of this source file you'd need to add:

    require 'iconv' if RUBY_VERSION.start_with?('1.8.')