Fix UTF-8 URL's

Fixes shortening of URL's with UTF-8 characters