Fixes for econv_insert_output.

* Defer alloc of 4096 bytes.
* Copy into bytes of buf, not into buf.