Workaroud different serialization with different lxml versions

Signed-off-by: Michal Čihař <michal@cihar.com>