Fixed bugs in some of the file natives.

Also added read-file-as-string function in System.n