Remove query strings from filenames