From http://stackoverflow.com/questions/2955251/php-function-to-make-slug-url-string