Optionally retain search values.

https://api.drupal.org/api/drupal/includes!common.inc/function/drupal_parse_url/7 regexs make people sad.