docs: public URLNormalizer removeDirectoryIndex() {
          String path = toURL().getPath();
          if (PATTERN_PATH_LAST_SEGMENT.matcher(path).matches()) {
              url = StringUtils.replaceOnce(
                      url, path, StringUtils.substringBeforeLast(path, "/") + "/");
          }
          return this;
      }