Since the slash is already in a variable and not in a string constant, I don't think you need to double-slash it.
See my note and sample code
here (reply 5 of 7).
The compiler tries to interpret a backslash in a string constant as a backslash code rather than a backslash character. But the backslash in a string is the backslash character.