Handle multibyte strings for String#insert

Fixes #2268