converts a url into a small one