Eliminate some more ctype.h calls.

Change-Id: I6fe3a8fea572a479d3b8a0664d82768437b999e2
Reviewed-on: https://code.wireshark.org/review/4871
Reviewed-by: Guy Harris <guy@alum.mit.edu>