Wrap data attributes in single quotes

To avoid breakage when passing along JSON serialized data.
Merge pull request #307 from vjt/patch-1

Wrap data attributes in single quotes