Check encoding