docs: private static String sanitizeUrl(final String url) {
          val m = NON_PRINTABLE.matcher(url);
          val sb = new StringBuffer(url.length());
          var hasNonPrintable = false;
          while (m.find()) {
              m.appendReplacement(sb, " ");
              hasNonPrintable = true;
          }
          m.appendTail(sb);
          if (hasNonPrintable) {
              LOGGER.warn("The following redirect URL has been sanitized and may be sign of attack:\n[{}]", url);
          }
          return sb.toString();
      }