pw.write("<entry key=\"" + element + "\">"+getProperty(element)+"</entry>");
pw.write("<entry key=\"" + element + "\">"+JFritzUtils.convertSpecialChars(JFritzUtils.deconvertSpecialChars(getProperty(element)))+"</entry>");
    public void save(String filename) throws IOException {        Debug.msg("Saving to file " + filename);        try {                BufferedWriter pw = new BufferedWriter(new OutputStreamWriter(                    new FileOutputStream(filename), "UTF8"));            pw.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");            pw.newLine();//          pw.write("<!DOCTYPE phonebook SYSTEM \"" + PHONEBOOK_DTD_URI//                  + "\">");//          pw.newLine();            pw.write("<properties>");            pw.newLine();            pw.write("<comment>Properties for " + JFritz.PROGRAM_NAME + " v"                    + JFritz.PROGRAM_VERSION + "</comment>");            pw.newLine();                        Enumeration en = keys();            while (en.hasMoreElements()) {                String element = en.nextElement().toString();                pw.write("<entry key=\"" + element + "\">"+getProperty(element)+"</entry>");                pw.newLine();            }            pw.write("</properties>");            pw.newLine();            pw.close();          } catch (UnsupportedEncodingException e) {              Debug.err("UTF-8 not supported.");            } catch (FileNotFoundException e) {                Debug.err("Could not write " + filename + "!");          } catch (IOException e) {            Debug.err("IOException " + filename);        }            }