Adds a decode method to decode base64 encoding