Fix #177. Add proper quoting to xml datatype.

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