fix for correct encoding of search query for pslan