Takes a string and formats it for a url.