Handle named character entities, simplify registration