Modify to move filenameEncode to Model and use it