Restore Writer.write_char, see #10861.