Updated the content type of the YamlEncoder, that complies with http://yaml.org/spec/history/2001-05-15.html