function.inc.php: Added urlencode to search routine. Resolve #1.