Cast char to unsigned char in all ctype.h calls

Some standard libraries implement these as table lookup macros which
generate a warning (Array subscript has type 'char') when given a char.