mdboom/matplotlib — comment on commit 42c77be7c19567b1bc9e6f900b2e20527454622b
File:  line 0
By vchahun:

`codecs.EncodedFile` does not encode, it translates between encodings : you should use instead (line 1071)

```python
svgwriter = codecs.getwriter('utf-8')(filename)
```

Also note that the function `print_svgz` still uses `io.TextIOWrapper`