Fixed in StreamOutput.do_write() to handle utf-8 strings.