Fix character count on modern IE