When using "move or rename files" (playlist selection context menu->File operations->Move, rename or copy files"), $replace() seems to be ignored. I use the following output filename format:
CODE
%tracknumber% - $replace(%title%,:, -,$char(47),-,?,,*,)
For a track with the title:
CODE
Epilogue: You And I / The Story Of Chess
the preview in the main "Move, rename or copy files" dialog, and the name of the renamed file after the Run button is pressed, is as follows:
CODE
08 - Epilogue_ You And I _ The Story Of Chess
The preview field in the "File naming schemes" dialog (which appears after the Edit button is pressed) and in the "File naming scheme" dialog (which appears when the file naming scheme in question is double clicked) is correctly rendered as:
CODE
08 - Epilogue - You And I - The Story Of Chess
Hypothesis: Characters that cannot be represented in Windows file names are replaced with an underscore (_) character prior to the application of the selected file naming scheme instead of after. This behaviour would make $replace() on such characters ineffective.
edit: Note that this works correctly in Foobar2000 0.8.3. This has existed for all 0.9betas I have tried so far, but I just hadn't gotten around to reporting it until now.
edit 2: Damn, just found this topic, which describes the same issue.