Fix tests for ruby 2.

Ruby 2 removed iconv from stdlib.