Strip the scope id from address string before passing to inet_pton. On some platforms, like FreeBSD, inet_pton fails if the address string includes trailing characters like a scope id.