Use the Split/Join trick.

For example, to replace "\" with "\\":
Code:
$Path=Join(Split($Path,"\"),"\\")