I think you new to XML encode it because the apostrophe is being passed to the server in a SOAP message. Have you tried that?
So a ' will become '
This post might help: http://stackoverflow.com/questions/4403039/escape-an-apostrophe-from-a-data-bindings-xml
_____
Paul
Sent from mobile device.