The current implementation is using re.sub() to replace a set of characters in filenames.
After a small benchmark, and given the huge number of filenames Drive is is dealing with, this micro optimization may be interesting.
The script first test the current implementation using re.sub().
The second is using a potential better implementation, using str.translate().
This is a significative improvement on the performance level.