Allow iolists in write_streamed_attachment