(1) In case the url contains elements that has encoded path
separators , the filename extracted from url may contain
embedded fileseparator charactor. A safer approach is to
decode the input urlString and then determine the last
element in the path for using as filename.