Remove "bool decode" argument from encode() method!

It was very confused!