encodeURIComponent issue

I am trying to add encodeURIComponent to the following function so on my email I can get the links to be linkable but for some reason it is not working. In this line i have the following:


"Click the following link:
" +
meetingDetails.url.replace("https", "fuze") + "

" +

this is what i’m getting without using encodeURIComponent : fuze://fuzetest.callwave.com/fuze/614b03a2/11561

This is the entire function


public static function getMeetingInfoEmailPart(meetingDetails:MeetingDetails,confRoom:ConferenceRoom):String {
            
            var roomAddress:RoomAddress = getRoomAddress(confRoom,false);
            var tollFreeRoomAddress:RoomAddress = getRoomAddress(confRoom,true);
            var info:String = meetingDetails.invitationText+"

" +
                              "-----------------------------------------
" +
                              "Meeting Subject: ................ " +  meetingDetails.subject +  "
" +
                              "Meeting Date: ...................  " +  meetingDetails.startTime.toDateString() + "
" +
                              "Meeting Time: ................... " +  meetingDetails.startTime.toTimeString() + "
" + 
                              "-----------------------------------------

" +
                              "To join the web meeting:

" +
                              "Click or copy and paste this URL into your browser:
" +
                              meetingDetails.url + "

" +
                              "To join the web meeting thru your iPhone:

" +
                              "Click the following link:
" +
                              meetingDetails.url.replace("https", "fuze") + "

" +
                              "To join the audio portion of this meeting:

" +
                              "Toll and international dial in:" + StringUtil.formatPhoneStringUSA(roomAddress.phoneAddress) + "
" +
                              "U.S. only toll free : .......... " + StringUtil.formatPhoneStringUSA(tollFreeRoomAddress.phoneAddress) + "
" +                              
                              "Room :  .......................... " + roomAddress.roomNumber + "

" +
                              "Having trouble joining this meeting?

" +
                              "Click or copy and paste this URL into your browser to visit the FUZE Support page:
" + 
                              "http://www.fuzemeeting.com/fuzemeeting/support

" +
                              "Thanks for using FUZE by Callwave.";
            return (info);
        }

please help! :jail: