Restore Writer.write_char, see #10861.
auto merge of #11310 : Dretch/rust/write_char, r=alexcrichton