Fix xml serialisation (broke down some cyrillics-related tests)