This change will generate `example%5B%5D%2A` instead of `example%5B%5D*`.
I think that it should be  `urlencode($key) . '%5B%5D*'`