saslPrep
fn
string saslPrep(string input) @safeSASLprep profile (RFC 4013) for password normalization.
Applies the following steps:
- Map: non-ASCII spaces to U+0020, "commonly mapped to nothing" removed
- Normalize: NFKC
- Prohibit: check for prohibited characters
- Check bidi: ensure no mixed LTR/RTL without proper framing
For ASCII-only input, returns the string unchanged (fast path).