Fix for search(::String, ::Char) (thanks to @maleadt)