Literal encoding is text processing, not evaluation
The encoder escapes the selected quote, backslashes, control characters, line separators, and lone UTF-16 surrogates while preserving valid surrogate pairs.
This is a direct character encoder. It never decodes by evaluation and its output can be checked by a parser as syntax.