Sounds an issue for archiveArtifacts, a feature of Jenkins core. Updated component/s.
I rather recommend you to pack files with `tar` (for example) before archive them.