Allow writing to any IO stream, not just AsyncStream.

@loladiro Is there any reason not to do this?