Ruby 1.8 cannot create a URI from a URI