The program keeps generating an invalid URI when it attempts to read/write from/to the file system...