Fixed issue #2657 (Can't escape characters inside an IN condition)

See https://github.com/orientechnologies/orientdb/issues/2657