Fixed hex char checking in io.c