Forbid domains containing [ and ] to reduce IPv6 parsing weirdness

https://bugzilla.mozilla.org/show_bug.cgi?id=1022207