Simplest solution is the previous restriction on using invalid characters in names.
Since many disliked that, a toggle choice might be best.
I habitually avoid characters invalid in any OS or file system I might conceivably use, but I suspect for those not used to doing that it would be simplest to remove the option.