Substitution function and full path to substitute

Hello. Program which I am using sends "Title - \\filename" to the printer so as a result I get full path in filename. On further process backslashes are converterd to underlines. Is it possible to make a proper rule for substitution module? Whenever I add "\\" mark, PdfCreator starts with critical errors.