Avoid encoding too many characters for XML as the entities are not defined.