normalize xml before sending to validator

fixes: http://manage.dimagi.com/default.asp?128579
Could this fail with an exception if `source` is not valid XML? Do we want to catch that exception here or let it trickle up?