code: public static String escape(String pArg, String pEscape, String pDelimiter) {
          return pArg.replaceAll(pEscape, pEscape + pEscape).replaceAll(pDelimiter, pEscape + pDelimiter);
      }
docs: Escape the delimiter in an argument with the given escape char.
  
  @param pArg string to add escapes to
  @param pEscape the escape character (e.g. '\')
  @param pDelimiter the delimiter to escape (e.g. ',')
  @return the escaped char