Remove incorrect use of ctype.h functions.