FIX: Fix binary coder

Fixes a nasty little bug in the coding error check. @rkmaddox ready for review.