Why can I use $replace() to create custom substitution schemes for characters that can be used in file names?
Invalid file name characters – such as slashes or backslashes – are replaced before metadata originating from the file is processed by title formatting functions. This is necessary to allow slash or backslash characters placed by you in your file name formatting pattern to be interpreted as path delimiters without the side effect of each slash contained in metadata fields included in your file name formatting pattern being interpreted as a path delimiter as well.