Fix incorrect usage File.OpenWrite()

The method OpenWrite() will open an existing file for writing which can
cause corruption if the new file is smaller than the existing file. The
correct usage is Create().