code: def content(self, value):
          
          if isinstance(value, bytes):
              self._content = value
          else:
              self._content = value.encode(ENCODING)
          self.size = len(value)
docs: Set content to byte string, encoding if necessary