escape xmlcdata before sending to socket

fixes #203