Fix NetworkAddress.toString for IPv6 addresses. See #485.