fix broken VS build, change some char* to unsigned char*