God dammit encodeURIComponent...