Properly URI encode the file name before opening a URL connection on it.