Avoid the usage of CDATA-Tags if not necessary

The current implementation of the xml serializer wraps every string in a CDATA-tag which creates needless verbose xml files. This patch adds the functionality to check if CDATA-tags are needed by testing if the data contains xml control characters.