Prevent issues with signed/unsigned char

char can be unsigned or signed depending on compiler