Get index of character after which variable 'word' must be broken given variable 'length' (accounts for wide characters).