fix: Syntax Checking: Ensure working on latin-1 file encoding
https://bugs.activestate.com/show_bug.cgi?id=105635
rn=

(integrated from master branch change 018403c by Todd Whiteman <toddw@activestate.com>)