COMMONS-247 encode file name in javascript code before saving