What happens if "provisioning_url" is set to "http://server.com/some/path"? The code should be able to cope with that instead of building a bogus URI.