normalize xml before sending to validator
Merge pull request #4052 from dimagi/fix-validation-error

normalize xml before sending to validator