Fix bug in stringstream.
stringstream has bug in VC2008
https://connect.microsoft.com/VisualStudio/feedbackdetail/view/355711/vc-2008-stl-access-violation-depending-on-runtime-library-being-used
https://groups.google.com/forum/#!topic/microsoft.public.vc.language/kXFIde8uehg