Filter invalid XML characters and wrap system-out in CDATA tag.