Revert "changed url encode method"

This reverts commit 1baf8d3745db25348d20aa1255fcaf0b332e77d2.

new url encoding didnt work