Allow `-` in domain names for IDN support

Also note that `\w` already includes `\d` so the regex can be
simplified a bit.