fixes #961 wrong content-encoding instead of content-type charset=utf-8