VCR already sanitizes the cassette name for you:

https://github.com/vcr/vcr/blob/v2.8.0/lib/vcr/cassette/persisters/file_system.rb#L52-L60.