Clear the ifs stream flags in the outformat reader.

Otherwise the real format reader fails to read the stream in
rare instances.
Merge pull request #5 from dlonie/clear-stream-flags

Clear the ifs stream flags in the outformat reader.