docs: public static String formatIPAddressForURI(InetAddress inet){
          if(inet == null){
              throw new IllegalArgumentException();
          }
          if(inet instanceof Inet4Address){
              return inet.getHostAddress();
          } else if (inet instanceof Inet6Address){
              return '[' + formatAddress(inet) + ']';
          } else {
              return inet.getHostAddress();
          }
      }