Encode the optional display_name and the header_name to a value suitable for GSettings schema org.
gnome.evolution-data-server and key camel-message-info-user-headers.
Free the returned string with g_free, when no longer needed.
| display_name |
display name for the header name, or null |
| header_name |
the header name |
|
a newly allocated string with encoded |