Set encoding to utf-8

This fixes a compatibility problem with 1.9

Resolves #7