toFileEntry

Extension function to convert String to a file entry.