Ensure that wsgi.input is a file object opened in binary mode. Fixes issue #881.