I think we should escape the value in templating.ps1 before replacing the placeholders in xml template.