Wrap data attributes in single quotes

To avoid breakage when passing along JSON serialized data.