Fix over-aggressive filename cleaner