This fixes some bugs around retrying and URL encoding and should enable a follow-up that finally adds bulk deletes on Azure.