Ensures filenames do not include `./`.