code: public static String unescape(String str, char escape)
      {
          if (str == null) {
              return "";
          }
          StringBuffer buf = new StringBuffer();
          char[] array = str.toCharArray();
          boolean escaped = false;
          for (int i = 0; i < array.length; i++) {
              char ch = array[i];
              if (escaped) {
                  buf.append(ch);
                  escaped = false;
              } else {
                  escaped = (ch == escape);
                  if (!escaped) {
                      buf.append(ch);
                  }
              }
          }
          return buf.toString();
      }
docs: Unescapes the given string and returns the result.
  
  @param str the string to unescape
  @param escape the symbol used to escape characters
  @return an unescaped string