Replace some uses of strstr with strchr.