def encode_body_for_create
      if self.body.present?        
        if binary?
          self.body = Base64.encode64(self.body)
        elsif
          denc = detect_encoding
          self.body = self.body.encode('utf-8', denc)
        end
      end 

      true
    end
def encode_body_for_create
      if self.body.present?        
        if binary?
          self.body = Base64.encode64(self.body)
        elsif
          denc = detect_encoding
          self.body = self.body.encode('utf-8', denc)
        end
      end 

      true
    end
converts @body to utf-8 if not already