Allow option to include surrogate pairs in XML content
Bring in changes from christav
Allow option to include surrogate pairs. Closes #29