Also truncate octal fields with spaces

Fields in some tar archives may end in a space instead of a 0
Consider files may be directories when unpacking
Trim octal fields instead of stopping at spaces

E.g. 7-zip may also prepend fields with spaces
Add tests
Extend the new space and directory tests
Merge pull request #8 from mvdnes/space_dir

Issue unpacking directories and with octal numbers