[serializer] fixed whitespace issue when decoding xml