Encodes a JavaScript object (with key/values) into a URI (ie: key1=value1&key2=value2...)