Handle invalid xml

Two commits to improve our reaction when invalid XML is encountered in an incoming NCIP message.

Includes mitigation for something we've seem twice in testing / production with INN-REACH: a raw Control-D character.