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