Added stream to single buffer conversion, fixed unicode stream to string bug.