Set charset encoding to UTF-8 for snippets

**What does this MR do?**
It makes sure that a raw snippet gets the HTTP headers charset=utf-8. That way snippets with weird characters gets rendered properly

**What issues does this fix?**
Fixes #2678