Added missing URLEncode on deleteIndex method