Fix #177. Add proper quoting to xml datatype.

Fix #177.
This patches handles xml datatype the same way as text regarding quoting thus the text converters are used.