IndexedString::toUrl: Fix too-strict assert
Use the same criteria as in the IndexedString ctor taking a QUrl