URI#hostname is called URI#host on Ruby 1.9.2