XML serialization for xUnit output

To avoid breaking the XML output with specific HTML entities such as &nbsp;