Fix streams and buffers usage (refs #8267 and refs #7704). Now conversions the use STL streams shall work faster