FFI: store stdout/stderr in blobs instead of strings