Hi. Prehaps try the following:
PHP Code:
$query_string = urlencode($query_string);
Depending on where you place readfile in search.php, you may wish to define a new variable and use that instead as $query_string is passed to phpdigSearch. You may also wish to clean that variable too before passing it to readfile.