Allow URL redirection when downloading a file

Fixes #586