thoughtbot/paperclip — pull request #811 by brumm (2012-04-05 12:18:39+00:00)
Title: Fixes AWS::S3::Errors::RequestTimeout on Model#save

Setting `binmode` on tempfiles correctly sets the tempfiles external_encoding to `ASCII-8BIT` instead of `UTF-8`, which aws-sdk choked on.

I'm not entirely sure whether it's necessary to set `binmode` on all possible adapters, but I did it anyway to be sure. Tests are passing and new tests are added.