Special:Badtitle/NS304:URL

Type:URL converts a regular string into a URL within the context of an SMW argument.