Fix delete of saved searches with spaces

Without this patch, saved searches break when there is a space in the search name.