force wget or curl to save files using the expected filename