+ Utils.addEntities(dcv.value) + "</dcvalue>";
+ Utils.addEntities(dcv.value) + "</dcvalue>\n").getBytes("UTF-8");
    private static void writeMetadata(Context c, Item i, File destDir)            throws Exception    {        File outFile = new File(destDir, "dublin_core.xml");        System.out.println("Attempting to create file " + outFile);        if (outFile.createNewFile())        {            PrintWriter out = new PrintWriter(new FileWriter(outFile));            DCValue[] dcorevalues = i.getDC(Item.ANY, Item.ANY, Item.ANY);            out.println("<dublin_core>");            for (int j = 0; j < dcorevalues.length; j++)            {                DCValue dcv = dcorevalues[j];                String qualifier = dcv.qualifier;                if (qualifier == null)                {                    qualifier = "none";                }                String output = "  <dcvalue element=\"" + dcv.element + "\" "                        + "qualifier=\"" + qualifier + "\">"                        + Utils.addEntities(dcv.value) + "</dcvalue>";                out.println(output);            }            out.println("</dublin_core>");            out.close();        }        else        {            throw new Exception("Cannot create dublin_core.xml in " + destDir);        }    }