Fix search query string serialization