Replaced UrlDecode calls with overload that accepts encoding param.