A function to convert strings to SEO friendly URL slugs from www.cubiq.org