tar: start using cstruct internally to replace some string manipulation

The interface hasn't been changed yet.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>