Replace unsigned char with int8_t