I am looking for the most mature library, algorithm or code snippet that can generate SEO friendly and meaningful URLs from titles (e.g. www.example.org/what-is-the-most-mature-way-to-generate-seo-friendly-urls-slugs).
I know one can easily write a 10-line function that does this but I am searching for a mature library that is able to handle several edge and special cases (different languages, scripts, eastern languages like Chinese, converting special characters like '&' to 'and' and '@' to 'at' and the like, ...) and I don't want to reinvent the wheel. The resulting URLs should be as clear, clean and meaningful as possible.
The programming language doesn't matter (but it has to be open source) because I can easily port it to my preferred language.