Fixed URL encoding mechanism

URL with port specified (https://www.example.com:444/image.jpg) was incorrectly encoded (https://www.example.com%3A444/image.jpg instead of https://www.example.com:444/image.jpg)