Add UTF-8 encoding where we read in YAML so it reads in UTF-8 characters properly. Fixes #836.