hash removes serial from xml after encoding it