Fix bitcoin_ticker encoding/decoding for python2/3

This is probably The Right Way to do it, and I was just wrong before :)