Set the charset used in the file - see the JDK javadoc for details