One Cloud Integration

How do I create a calculated field that contains a url-friendly version of the account name and case name?   

Any feedback would be appreciated. 

Thanks, 
Natalie