extract hyphen in domain without protocol

fix a bug where the domain before a hyphen was chopped off if no
protocol was specified.