Handle division by zero in characters_per_second