Encode URL offered in filestorage. Fixes #780