404 error for unwanted unicode in url

LMS-2488

@sarina  @adampalay 

This is the actual fix for:
https://edx-wiki.atlassian.net/browse/LMS-2488
Or just call the variable `url_parts_copy` so your intention is clearer