Open files with utf-8 encoding

This fixes issues in python 3 for reading tools and snippets
files when gedit is run in an environment with a non utf-8
locale