Special characters substitute mapping to filename from "tag to filename" convert

There is the function $validate()
(see the help: Scripting Functions – Mp3tag Documentation)
but please note the \ is a valid character to create folder structures, see the HowTos:
Converters to rename files or to import tags - #2 by Florian