Add yaml_encode() jinja filter

  * Add documentation for yaml_encode()
  * Mention yaml_encode() in formulas documentation
  * Add unit tests for yaml_encode()
  * Improve unit tests and documentation for related yaml_dquote()
Merge pull request #17290 from plastikos/improvement-yaml_encode

Add yaml_encode() jinja filter