Clear flags for the temporal string stream to avoid conversion errors.
…don't know what final size of the array will be.
String stream flags were not cleared and this was causing all the unicode characters of a string to be converted as the first encountered unicode character. Example: "first á followed by é" -> was being encoded as "first á followed by á"
… caused problems when compiling with Visual Studio.