Revert "Revert "PLXCOMP-220: defensive checks to avoid passing negative uid/gid into TarEntry or encoding into tar output stream""

This reverts commit 580c4250860ee62ca3e97cd4a52d19a0a8ec90da.
PLXCOMP-220: added unit tests for handling invalid uid/gid in TarEntry