I wanted to escape a quotation mark ("). Doubling it does not escape this,
I was able to force the hex-code by using {%|%22}.
On http://www.jrsoftware.org/ishelp/index.php?topic=consts this escaping is show as {%NAME|DefaultValue}. Leaving NAME empty makes it use the hex code.