encode boost queries