auth: Fixup remote user lookup with spaces in DN

If there is a space (*or any other invalid URI character*) in the DN, it should be properly encoded when being sent in a URL back to the server