Fixed bug where deleting a device doesn't work if device ID contains URL encoded characters.
Fixed bug where deleting a device doesn't work if device ID contains URL encoded characters.

akcoder/genieacs,sonaht/genieacs,zaidka/genieacs