Charset will be written to the file attributes.