Semi-fix GetStringFromStreamBuffer for MSVC