Emit the named Unicode code point as a multibyte sequence in the current locale.
Matches the extension in bash(1), ksh93(1), and GNU coreutils printf(1); not specified by POSIX.
Reject (as '?') surrogates, values above 0x10FFFF, characters not representable in the current locale, and encodings that would exceed the input length consumed (escape() rewrites in place).
Double '%' bytes when processing the format string so \u0025 et al. behave like \045.
Use uint32_t for hex parsing to avoid signed-overflow UB on \UFFFFFFFF.