Fix bug in backend.ckan.js where it wasn't encoding the URI

The problem appeared when there were chars like & or + on the data sent through
AJAX.