mime discovery from []byte, renamed old func