Assuming that you are within the execute
function of your skin, you ca access the title object like this:
$title = $this->data['skin']->getTitle();
Then you can get the URL enocoded title like this:
$URLEncodedTitle = $title->getPartialURL();
If you are in the initPage
function, use
$title = $this->getTitle();