docs: function normalizeHostname(hostname) {
      // make sure noone gave us a full URI
      if (!hostname.startsWith("coap://") && !hostname.startsWith("coaps://")) {
          hostname = `coaps://${Hostname_1.getURLSafeHostname(hostname)}`;
      }
      return new URL(hostname).hostname;
  }