make sure we correctly handle chunked encoding when sending files