Encode URLs in layered nav widget

Encode the URLs generated by layered nav widget. Maybe fixes #2675