pack and unpack stdout and stderr in a binary-efficient way