[caldav] Make sure all request/put data is in Utf-8 format.

Set correct ContentLengthHeader in the network requests.