search encoding