Converting a string to URL safe format for a URL slug