fixed bug related to unsigned char in convert.c