@UNSAFEESC — Replaces “safe” characters in a string with potentially dangerous ones, and escapes them.

Syntax:
%@UNSAFEESC[text]

textText, possibly containing “safe” characters

Any characters currently defined as unsafe will be escaped. Percent signs will be doubled; double-quote and backquote marks will be replaced with %=q and %=k; and any other unsafe characters will have a %= prefixed. Any characters not currently deemed unsafe will not be escaped.

echo Line = %@unsafeesc[%line]

Note: All characters in the range U+FF00 through U+FF5F will be remapped to ASCII equivalents.