i guess instead use $chr(92) for \ and $chr(47) for /

Your question is not really clear to me. perhaps you could specify what your doing with the text your replacing? Are you just trying to return this text for display or what?