Mostly works except for some reason some of the header names aren't null terminating