$page->uid()
The UID is the page directory name without the sorting number.
Example
<?php echo $page->uid() ?>