Replace invalid XML character with entity

Fixes some invalid XML.