strlen expects (char *), rather than (unsigned char *)