fixed: Permalink: layer is ignored when layer name contains space character

The reason is: space characters of layer names get coded to %20 in a
permalink-URL. So the names do not match any more and the first
(default?) layer is choosen. Fixed it with decodeURI().