Use uint8_t where applicable
char signedness