Encode search values for named params to not destroy the url and add missing line endings