fix yaml_emit_file function
Merge branch 'pull-request/1'

Enable yaml_emit_file() which has apparently been marked as unimplemented for
years even though all the code was available in the source.