During the testing of my public DAViCal server I noticed a very strange phenomenon. This phenomenon wasn't present in my localhost system which had passed all my testing. Any rate, when I attempted to PUT a calendar .ics file into the PostgreSQL database, the caldav_data table / caldav_data column was being mangled.
This was occurring for all of my calendar files, so at least the error was consistent. My calendar files SHOULD look like (snipped for brevity):