Project: datamanagement
Issue DM-4917: Porting encodeURL of the java FitsDownlaodDialog code to javascript 
When download an image, the proper name needs to be resolved based on the URL and the information about the image. In Java code, it has the following three methods: {code} encodeUrl makeFileName makeTitleFileName {code} These method should be ported to javascript. Thus, the javascript version of the FitsDownloadDialog will save the file in the same manner.
Story points: 2