Yea the last 1% is the most fun and difficult.
One of the projects I am working on lately is a data integrity and syncing platform with multiple PB of data in multiple data centers, and the dataset has been around for 10-12 years.
Some of the file names and path names I see have the most unnatural and unbelievable characters in them.
It can absolutely be quite a challenge. This point about rusts string system sounds like maybe could give me some very precise control.
Lucky for you. I will think about you next time I have to fix one of these 1% pathname bugs you do not seem to be concerned about, which tend to happen all the time when your program is used by many people with many files (i.e. the case every developer hopes for)