Need a little direction with this.

I am trying to encode this line so it write the URL dislayed as somewhat encode form souorce viewer.

The URL:
http://sitepoint.com/images/user/media/song.mp3

I would like it to appear as something gebirsh or encoded:

http://%%5dfsitepoint%%%/@#$%%./CD%20%%%%&*


Line

Code:
$js_songs_url[] = "songs_position_url[".$i."] = '".MusColHelper::getSongFileURLslashes($songs[$i])."';" ;
I have tried these methods none work



Code:
$js_songs_url[] = mb_convert_encoding("songs_position_url[".$i."] = '".MusColHelper::getSongFileURLslashes($songs[$i]))."';" ;

$js_songs_url[] = rawurldecode("songs_position_url[".$i."] = '".MusColHelper::getSongFileURLslashes($songs[$i]))."';" ;

$js_songs_url[] = html_entity_decode("songs_position_url[".$i."] = '".MusColHelper::getSongFileURLslashes($songs[$i]))."';" ;

$js_songs_url[] = preg_replace("songs_position_url[".$i."] = '".MusColHelper::getSongFileURLslashes($songs[$i]))."';" ;
NONE worked for me...