libmagic support replaces direct call to file....and display of file type and encoding