Handle whitespace in query api parameters

This change makes it congruent to whats been done in knife-cloudstack as well