Fix filenames containing / or \.