Tika detection only applied to byte array