Set charset encoding to UTF-8 for snippets

Fixes #2678

Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
Merge pull request #7518 from jvanbaarsen/snippet-charset-fix

Set charset encoding to UTF-8 for snippets