fix for renamed OutputStream::WriteFile