Append a protocol if its missing.

Fixes #2242