Tiled Gallery: Fix image meta encoding.

Image meta is now encoded by calling `esc_attr` on the result of mapping strval over the image meta attributes, instead of mapping `esc_attr`. This way `json_encode` can properly escape any quotes inside the attribute, before being attr encoded.
Merge pull request #647 from rase-/fix/image-meta-encoding

Tiled Gallery: Fix image meta encoding.