Use tar.FileInfoHeader to write all metadata to the header