Simple function written in PHP to sanitize URLs for SEO purposes