Fix parsing of address[:port] strings for IPv6 addresses, bug #515