Ensure that newline and null byte in metadata don't trip up the XML parser. Add some debugging code for a crash with seed 7 test 94.