replace use of std::string stream move constructor due to bug

Refer to
http://stackoverflow.com/questions/12015899/why-are-move-semantics-for-a
-class-containing-a-stdstringstream-causing-compil