encoder: even better error reporting
0.1.3