encoding check