isValidCodePoint

Whether this is a Unicode scalar value: within the code point range and not an unpaired surrogate.

Character.isValidCodePoint is JVM-only and additionally accepts lone surrogates, so this does the range check explicitly for commonMain callers.