Changed parsing to use char instead of unsigned char.