added recursive url encoding to support nested dict
using nested url encode