int len = PL_strlen((char *) str);
int len = nsCRT::strlen((char *) str);
static unsigned char * utf8_nextchar(unsigned char *str){  if (*str < 128) {    return (str+1);  }  int len = PL_strlen((char *) str);  // RFC 2279 defines more than 3 bytes sequences (0xF0, 0xF8, 0xFC),  // but I think we won't encounter those cases as long as we're supporting UCS-2 and no surrogate.  if ((len >= 3) && (*str >= 0xE0)) {    return (str+3);  }  else if ((len >= 2) && (*str >= 0xC0)) {    return (str+2);  }  return (str+1); // error, return +1 to avoid infinite loop}