Performance tweak: Add fast path to escapeAttr

At least in node 0.10 a test is cheaper than constructing a new string with
replace. Since the common case for attributes is that there's nothing to
escape, it makes sense to add a fast path that leaves the string untouched.