io: use memcpy to copy unix socket path

This allows for unix sockets in the abstract namespace
on Linux. Eg.:

local conn, err = io.unix.connect('\0/org/freedesktop/systemd1/notify')