Allow downloaded files to be renamed

I found myself needing to save downloaded files with a name different to the original, I hope this is useful for others too.