Protocol-less URL and anchor fixes

URLs with sources of `//host/path` did not work because they got the
hostname prepended before them, but all they needed was a protocol.

Anchors did not have their contents hodorised either, that was fixed
too.