Fixes #82723 by sanitizing the generated filename.
Merge pull request #120 from luisromangz/8.5-SNAPSHOT-82723

ixes #82723 by sanitizing the generated filename