Add an option to avoid checking for EOF when decoding from an std::istream, since that can block