For better compatibility, ignore leading and trailing whitespace, and take the first six digits.
In addition, some historic tar implementations treated bytes as signed.
The file header record contains metadata about a file.
To ensure portability across different architectures with different byte orderings, the information in the header record is encoded in ASCII.
Numeric values are encoded in octal numbers using ASCII digits, with leading zeroes.