Use urlencode() to prevent spaces in class names