Improvements on converting from url: "http//example.org" to { "uri": "http://example.org" }