decode as binary