Fix lexing of named character entities.