Fix the url shortening bug on auto-url titles in url.py