Don't use strtok_r due to portability issues.