prefer re-entrant strtok variant