MDL-40877 core_text: Added UTF-8 safe strrchr method
MDL-40877 repository_url: Use core_text functions instead of mb_strlen()