Fix reading body from IO-like

Hi Jordan

I had some problems sending an IO-like object as body. I've added some tests that resemble my problems and fixed them.

Cheers'
Hannes