fix encoding/decoding for encrypted data in python 3
fix encoding/decoding for encrypted data in python 3

DimensionDataCBUSydney/plumbery,DimensionDataCBUSydney/plumbery,bernard357/plumbery,bernard357/plumbery