Ok, I think it can detect encode by using `file.go#IdentifyType`.
I will add `IdentifyTypeByStream` and `IdentifyTypeFile` after merge this PR.