generate.py specifies encoding for test files

On many Windows machines, the default encoding is not utf-8. In the libgit2 repository, there are two files containing unicode characters encoded in utf-8. When generate.py attempts to load them using the wrong encoding, it crashes.

This happend on two machines, and fixes it on at least one (presumably on both).