Fixed Unicode issue when character count did not match byte count