URL coding ensures that all browsers will correctly convey text in URL strings. Characters such as the question mark (?), Ampersand (&), label (/), and spaces may be truncated or damaged by some browsers. As a result, these characters must be encoded in tags or in query strings, where strings can be re-sent by the browser in the query string.
fileName = HttpServerUtility.UrlEncode(fileName);
source
share