Encodes connection url

Fixes the problem with urls like 'jobs-for-students-–-the-taxing-questions'