Stream to File works on windows