PHP port of URLify.js from the Django project. Transliterates non-ascii characters for use in URLs.