selection.classed: coerce name to string.

Fixes #1625.