encode keywords before search