Fix #417: Rails 4 does not rewind input, causes POSTed data to be empty.
Better rewind semantics.