Fix bug -- Some strange chars will cause flexible query break.
Merge pull request #27 from philolee/master

Fix bug -- Some strange chars will cause flexible query break.