rem: const char *ptr = text;  while (numChars) { ptr += UTF8NextCharLen(ptr); numChars--;
add: if (text) {    const char *ptr = text; while (numChars--) { ptr += count_utf8_bytes(*ptr); } return ptr - text;
context: UTF8CountBytes(const char *text, uint32 numChars){	const char *ptr = text;	while (numChars) {		ptr += UTF8NextCharLen(ptr);		numChars--;	}	return ptr - text;}