improved name handling of downloaded file