MDL-40877 repository_url: Use textlib functions instead of mb_strlen()