in src/libraries/utf/include/m/utf/encode.h [301:309]
constexpr OutIter encode_utf32(char32_t ch, OutIter it)
{
if ((ch >= 0x110000) || ((ch >= 0xdc00) && (ch <= 0xdfff)))
throw std::runtime_error("invalid character");
*it++ = static_cast<DwordT>(ch);
return it;
}