Changed the default char type to unsigned char