urlencode the labels to allow non-alphanumeric chars