Make sure documents are sent with utf-8 headers

This fixes a potential html validation error