Handle protocols that seperate the host from path with colon

Fixes #1627. Added tests too.