Added unsigned char in modutil.c routines

Added unsigned char in modutil.c routines