Fixes and improvements to Server, Overlay

Tidying up some loose ends.
Because null-terminated C strings are subject to buffer overflows in unexpected ways, which leads to all kinds of fun for an attacker. I'm not saying that there is an exploit possible here, but there could be in the future if the code changes and someone manages to slot something in this nice bit of memory :-)