common/util: make pipe_writeln! use writeln! instead of write!