[SPARK-2395][SQL] Optimize common LIKE patterns.

What about ```
LIKE "abcd\\%"
```