Moved lexer and most unicode stuff away from grammar.