Handle env[:url] passed as URI object