Made some of the calls to ctype functions safer by checking isascii first.
Made some of the calls to ctype functions safer by checking isascii first.

R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone