javascript has problems with some characters. recasting image files names without extra characters