private String createEscapedString(String orig, String enclosure) {
    StringBuffer buf = new StringBuffer(orig);

    Const.repl(buf, enclosure, enclosure + enclosure);
    return buf.toString();
  }