This is hardcoding `'iso-8859-1'` as the output encoding and ignoring `__init__()`'s `encoding` parameter. It should be `encoding=encoding` on this line instead.

We should also use `super().__init__()` instead of calling `XMLGenerator`'s `__init__()` directly.