Serialize search filters correctly