[Benchmark] Sanitize --save input and strip strip while validating (#18073)
This PR adds a sanitation check for the `--save` flag: Improper `--save`
names may result in bad linux filenames.
Additionally, this PR applies `strip()` on inputs in order to prevent
extra spaces or newlines in filenames