allow ForwardingLineWriter to be flushed mid line
fix handling of int char writes