Escape XML in error output