Fixed search query encoding problem