Fix #547: "ValueError: Invalid URL "http:///localhost/script.php""