Added encoding detector