support non ascii inputs in write_http_body
Merge pull request #27 from jsvd/fix/nonascii_writes

support non ascii inputs in write_http_body