scala> new java.net.URL("http://www.google.com")
res2: java.net.URL = http://www.google.com
scala> spray.http.Uri(res2.toString)
res4: spray.http.Uri = http://www.google.com