When we access the testreport in the xml format of REST; there is the error "Char 0x0 out of allowed range" in the chrome browser. The data gets displayed with out any error with the json format.
There seems to be special character that are being added as part of the test case debug, this data when tries to get printed causes the error.
I believe the json is able to ignore the special character and not in case of xml.
I think the xml version being 1.0 may be causing this issue.