use libxml2 to write props

don't write xml ourselves, get libxml2 to do the encoding