Fix TISTUD-3084 - Escape the $ sign before applying it as a template string replacement.