Fix bad strlen usage.