Calculates the byte length of a string when UTF-8 encoded.
This is more efficient than encoding when you only need the length.
The string to measure
The byte length when UTF-8 encoded
Calculates the byte length of a string when UTF-8 encoded.
This is more efficient than encoding when you only need the length.