Specifically check for null character

This is a fix for #3. I don't particularly love this approach, but I'm not sure there is a better one without fixing or replacing inet_pton.