Revert "strtok stores its values in thread local storage."

This reverts commit d2e3b0660ec511234f85fbcfba934d996ae59727.