Use new chartable instead of ctype.h functions.