headers: external file attributes round 2.

* use correct octal vars.
* force to unsigned so the sky doesn't fall on our heads.