This class emulates finfo extensions, it read magic bytes from common file headers, also it has internal charset detection,