fixes escaping of content when building xml