HTML5 provides the a[download] attribute which lets you rename a file. This example will download link.txt and rename it something.txt.
asdf
Note that this only works on same-origin URLs (i.e. not across different domains).