tar: Add option to specify the encoding of archive pathnames

Use OEM by default for backward compatibility

Fixes: #26903
38 files changed