File encoding is stored in the fileRecord.

File encoding specifies how the buffer should be read (using
buffer.toString) and written (buffer.write).