Lexer for wide encodings