isdnloop: Validate NUL-terminated strings from user.