Allow unicode YAML dump

Fixes #1519