Index: e-book-query.c
===================================================================
--- e-book-query.c	(revision 227)
+++ e-book-query.c	(working copy)
@@ -641,8 +641,8 @@
 					encoded->str);
 		break;
 	case E_BOOK_QUERY_TYPE_ANY_FIELD_CONTAINS:
-		e_sexp_encode_string (encoded, q->query.any_field_contains.value);
-		g_string_append_printf (str, "contains \"x-evolution-any-field\" %s", encoded->str);
+		g_string_append_printf (str, "contains \"x-evolution-any-field\"");
+		e_sexp_encode_string (str, q->query.any_field_contains.value);
 		break;
 	}
 	 
