Fix for bytestrings in Tornado client.

Tornado iostream uses bytes, rather than str.