msi: Fix strings with lengths that are exact multiples of 2^16.