Fixed #114 by changing encoding of CHAR to use unsigned int.