StreamOutput.do_write() method now accepts non-ascii strings. Fixes #9.