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.