Leaflet: set encoding