Fix Lexer for correct string (encoding) detection