Export with YAML header.