HTML encode data attributes.