Accomodate Ruby 1.9 and Ruby 1.8 native IDN support.