Removed debug message
Fixed a bug in encoding of search parameters.