Fix Encodable/Decodable deprecation warnings
Merge pull request #50 from bfops/master

Fix Encodable/Decodable deprecation warnings