simplify test for symbols with unescaped backslashes
more improvements to char lexing