Fix crash when a / is in the search string