Issue 46: dumpgenerator should follow redirects

Patch by @balr0g from libsonic (GPLv3+).