Not Unicode-safe; use an `OutputStream` rather than a `Writer`.