strtok appears to break in OSX migrated to strsep