Add a default implementation of TextWriter::write_char.