Serialize data before adding it into body.
Fixed mime types.