To answer the “convert string to url” part of the question (you don't have to manually convert the string if you want the correct URL):
string url = "http://www.baseUrl.com/search?q=" + HttpUtility.UrlEncode("Hello I am");
You call Url Encode for each parameter to encode the values correctly.
source
share