For the record, I faced the issue when trying to illustrate this:
To circumvent the problem, I used հ (armenian small letter ho) instead of h (latin small letter h) in the https part. Since they are recognized as different characters, it doesn’t trigger the URL replacement.