Make sure all filenames have the correct extension in the case that they need to be trimmed for length.