Fix invalid XML
Replace '&' characters with entity
Add missing semi-colons on entities