z_string: fix truncatewords function.