Replace char with int8_t and unsigned char with uint8_t