fun validateUtf8Size(size: Int): Int
Validates the size of UTF-8 code point in bytes and if it is invalid throws CharacterCodingException.