Fix unrestricted url not being properly encoded