Corrected encoding of KeyConditions and QueryFilter