How do exposed views filters make their queries URL safe?
Use the url() function to encode your URLs.

url("what is going on around here, anyway?");


this will return the string '/what%20is%20going%20on%20around%20here%2C%20anyway%3F'

You could also use this to get the full, absolute URL.

url("what is going on around here, anyway?", array('absolute' =&gt; TRUE));


You may also be interested in the l() function if you need html output.