- checks data encoding