For 1.9 compatibility, rack.input should be encoded in ASCIIEncoding.

  When applicable, its external encoding must be "ASCII-8BIT" and it
  must be opened in binary mode, for Ruby 1.9 compatibility.