Use --numeric-owner for tar and --numeric-uid-gid for cpio.