Fix #78: convert Long and Character objects for XML