Importer encodes ampersands as html entities in identifer fields
When importing XML, identifiers with ampersands are imported with the ampersands an entity (& rather than the character.
The issue arose in two places:
1. The XML data reader was not decoding entities.
2. HTMLPurifier was reencoding ampersands in BaseModel::set()
Patches for both of these cases have been applied.