Fix old analytics api call for Split modulestore.

@cpennington @dmitchell 

I wasn't able to test the encoding due to no old analytics server available for testing. But I did test the empty strings.
This should probably just be `urllib.quote(unicode(course_id))`.