- URL encoding for udid to prevent a problem on server when there is a s...

@fmaylinch take a look when you can ;)


(There is two files where I saw the call to deregister endpoint. Why? Could we unify this code? Or there is a real reason two have same code on different files?)