Use buildin HeaderEncoder when not set in an instance of Message

Fix this problem : msg.SetHeader in a MessageSetting func generated an "invalid memory address or nil pointer dereference" error