feat: escape special characters in ID and class selectors

refs #1