Quote terminal attribute value for unary slash elements

Fixes #233
I considered not passing in the index and simply comparing `attr` to `attrs[attrs.length - 1]`, but this felt a little clearer.