Adopt best pratices in opening files with "rt" / "wt" for text files in vaspio.