ok, misread the pipe, it is still wrong though. If user writes `\n`, you want exactly that in the string (when parsed becomes a NL), not `\\n` (when parsed becomes the two characters `\` and `n`; that does not seem to be what the user intended.  Same if user writes `\"`.

OTOH, if escaping is NOT allowed in the text then the gsub makes more sense. Hiera1 does not allow escaping, but it also makes it difficult to generate strings containing interpolation start and such. Suggest we do allow escapes - and hence, the gsub here does not do the right thing...