[docs] email.policy doc example passes 'policy' to as_string, but that doesn't work (issue 18600)