Add ::toUrl method to default to http/https and make ::toUri default to protocol-relative.