normalize xml before sending to validator

fixes: http://manage.dimagi.com/default.asp?128579
Yeah I re-raise the exception as an `XFormError` within `parse_xml` and the caller can catch that. This now mimics previous behavior much closer in fact, and all places that call this should already have been catching that.