Send correct `charset` header for log files
Sanitise some more (strictly unnecessary) things