fix isValidDomain for ipv6 adresses (firefox omits the square brackets)