Added URL encoding when to build proxy url