Wrap keywords in CDATA if so requested.

Some keywords contain XML characters like ampersands, breaking
the document.