DR-110 Don't emit null chars when rendering XML

Reviewed by ArneC
Ticket: https://youtrack.mindtouch.us/issue/DR-110