A few little bugfixes for URL shortening.