Plists, or property lists, are just a file format for storing serialized objects - for example configurations or similar. The file format specifies how strings are stores, but it doesn't specify anything about higher level details - such as how file names are stored, parsed or otherwise dealt with.
This means that it is not possible to answer your question ...
I'm not sure about questions 1 and 2, but the third question appears to be scutil.
man scutil tells you about how to do it. Apple uses it to edit that file in the following KB article-
The answer is usually that you need to call xpc_set_event_stream_handler.
I found this amazing utility that will call xpc_set_event_stream_handler to remove the event from the queue, and then call your desired application. It allowed me to solve the problem you are having without writing/compiling any code. Check out github.com/snosrap/...
I updated to 10.14.5 a few days ago on one of my clients servers and have been having the same problem since. Everyones connection to the server just randomly drops. I can go into activity monitor and quit the smbd process and it will kick right back in and start working again but I never know for how long.