Use toURI to generate a variant URI

For form submission, among other things.