Properly null-terminate Unix-domain socket path. Thanks to Marc Espie