correcting slug encoding as url

Encoding slug as url to match saved one stored in database