code: public URLNormalizer removeTrailingSlash() {
          String urlRoot = HttpURL.getRoot(url);
          String path = toURL().getPath();
          String urlRootAndPath = urlRoot + path;
  
          if (path.endsWith("/")) {
              String newPath = StringUtils.removeEnd(path, "/");
              String newUrlRootAndPath = urlRoot + newPath;
              url = StringUtils.replaceOnce(
                      url, urlRootAndPath, newUrlRootAndPath);
          }
          return this;
      }
docs: <p>Removes any trailing slash (/) from a URL, before fragment
  (#) or query string (?).</p>
  
  <p><b>Please Note:</b> Removing trailing slashes form URLs
  could potentially break their semantic equivalence.</p>
  <code>http://www.example.com/alice/ &rarr;
  http://www.example.com/alice</code>
  @return this instance
  @since 1.11.0