limitToBytes

Clips to at most maxBytes of UTF-8, stepping whole code points so a surrogate pair is never cut in half.