made "std::string UrlEncode(const std::string & str )"function
updated newReagent : to get filename