fixed bug where in getStringWidth where unicode characters caused an
IndexArrayOutOfBoundsException