using ifs.rebuf() to push data to the stringstream object. In windows, when trying to push a raw char[] buffer to a ss object, cumulative garbage would end up in the target stream