kvargs: fix invalid token parsing on FreeBSD