Implemented support for detecting file types by magic number, stripping