Fixed encoding of entities.