Set charset encoding to UTF-8 for snippets

Fixes #2678

Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>