fix(server/registry): use url.Value.Encode()

Instead of open coding url encoding which lead to error, make it real
and use the library.