fixed URL encoding for dictionaries that contain dictionaries