[BUGFIX] escape special characters in classes

this is needed for the timeline view to work properly