Enoding detection