Fixing bug in url encoding when array is given. (Rest Client Issue #213)

Fixing bug in url encoding when array is given. ( Rest Client issue #213 )