httpserver: Send encoding as UTF-8 in various places

Fixes #1805