The snippet below shows how to write UTF to file.

Java Code:
try{
//opens the file
DataOutputStream out = new DataOutputStream(new FileOutputStream(myfile.dat);
String theText = "William_Wilson. §"
out.writeUTF(theText);
out.writeUTF("\n-William Wilson. §");
//closes the file
out.close();
}
catch(Exception ex) {
System.out.println("Error Saving Text File");
JOptionPane.showMessageDialog(view, "The File cannot be saved.",
"Information", JOptionPane.INFORMATION_MESSAGE);
}