Correctly call <ctype.h> functions using (unsigned char) casts.