Fix search (there was an invalid assertion I believe) this may bite me in the ass later with unicode..