Fall back to UTF-8

Fixes #332.

It may be better to rely on UTF-8 as the encoding and fallback to ascii instead.

However, maybe there is a way to pull the encoding from GitHub.