Adding Base64 smart constructor and JSON decoder