Make decode function behave similar to myxql
I personally believe this is incorrect to handle decode / encode this
way, but upstream in myxql and postgrex this is how it is handled.
Rather than fight that issue, I will instead make it behave similarly.
Fixes #158