Passing correct mode arg to File.open

so that writing is possible.  Egad.