Properly quote attribute selectors for one-by-name validation

Closes #816