Check for invalid filenames on rename