Added StreamToString that OSX will use