.migrate: terminate with error on invalid file names