code: public static String escapeFragment(final String fragment, final boolean strict) {
          return (strict ? STRICT_ESCAPER : ESCAPER).escapeFragment(fragment);
      }
docs: Escapes a string as a URI query
  
  @param fragment the path to escape
  @param strict whether or not to do strict escaping
  @return the escaped string