Print code to buffer instead of out_channel.

Out_channel is not in-memory.