work with page title

refactored using gareway
used MediaWiki utils in check_uri