Make one test case for each input file
Skip . and .. when creating test cases from source files
More robust encoding handling