Fixed unsigned char overflow