Fix encoding problem with icon path

If the ``legendImage`` field of a layer (in the admin interface) contains some accentuated characters, the icon path building fails because of encoding problems. This PR makes sure the icon path actually uses Unicode.