fixed a crash with quotes in strings in query dictionaries

Reproducible with such code:

    [Model where:@{ @"prop": @"it doesn't work" }]

The reason for the crash is that queryStringFromDictionary doesn't escape any quotes in passed arguments, my patch fixes this.