escapes logged xml strings.