Fix relative URLs to other hosts with same scheme.

This would otherwise give `//host/path/to/file` relative URLs, which
would technically be correct, but would potentially be confusing.