Removing query string from filename