Fix docs to use File.open instead of File.new with block

Thanks to @aaronmoodie for noticing.