Override File::getValidFilename method

Hi,

Is there a way to override (or configure) the File::getValidFilename method?

I’m not keen on how the default method works. For example, it changes apostrophes into hyphens when I’d prefer to just remove the apostrophes.

Thanks