Minor
Added encode-entities and encoded text and attribute values on serialize