Allow passing encoding to XMLWriter()

We don't support non-UTF-8 encodings, but reinstate the argument
such that existing code, like robofab, continues to work.