implement :normalize_query option.