added encoding to contract upload file name