Better Slug function with UTF-8 Support

I think this is a better Slug function with UTF-8 Support, special character support and fix an issue i have when uploading images, where the current slug function didn't work and the filename generated includes spaces. Maybe you can try it  and if it works better use it :)