Fixed a bug that was causing an ArrayOutOfBounds Exception. Fixed a bug where like queries weren't escaping percent characters.