template replacements should be escaped.