Remove redundant data before sending error message in WinRT.