Issue/pup 2349/deprecate non string modes on file type