handle param space:
entity query and search - trim; other - 400 error
Merge pull request #214 from forumbyr/master

handle param space