old_contents: import base64
  
  # TODO add optional params?
  requiredParams = {
      'encode': {
                },
      'decode': {
                }
      }
  
  def encode(data, params=None):
      return base64.b64encode(data)
  
  def decode(data, params=None):
      return base64.b64decode(data)
  
new_contents: import base64
  
  # TODO add optional params?
  requiredParams = {
      'encode': {
                },
      'decode': {
                }
      }
  
  def encode(data, params=None):
      return base64.b64encode(data)
  
  def decode(data, params=None):
      return base64.urlsafe_b64decode(data)
  
subject: use more forgiving b64 decoding function