docs: private static String massageURI(String uri) {
      uri = uri.trim();
      int protocolEnd = uri.indexOf(':');
      if (protocolEnd < 0 || isColonFollowedByPortNumber(uri, protocolEnd)) {
        // No protocol, or found a colon, but it looks like it is after the host, so the protocol is still missing,
        // so assume http
        uri = "http://" + uri;
      }
      return uri;
    }