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