Fix bug when clicking on a swatch.

Strangely, the bug only exhibited itself on FF.
Fix a defect in the URLON encoding with empty strings.