fail -> panic

Sorry I broke your code with rust-lang/rust#17894 ! Here's a fix :heart:

(this will have to wait on https://github.com/lifthrasiir/rust-encoding/pull/53 too)