Switched from C to C++ ctype functions to reduce confusion in Emscripten compiler.