Porting Django's urlify library from JavaScript.
Fix #11: Better urlification.
Merge branch 'urlify'