Calculates the number of bytes produced by encoding the characters in the specified.
int getByteCount(String chars) => getBytes(chars).length;