Fix url encoding for dataset and variable ids. Same is to be done with o...

...ther resources