code: private static String escape(String string) {
      return StringUtils.escapeString(string, StringUtils.ESCAPE_CHAR, 
                                      charsToEscape);
    }
docs: Escapes all the delimiters for counters i.e {,[,(,),],}