Encoding label and properties properly in URLs.

I think after these change we should be good for 2.0rc1.