fix ctype macros to cast argument to (unsigned) first