Thanks to the work of GCI students, we now have lots of SVG images in core (and lots more in extensions). However, they're usually somewhat pretty-formatted, with whitespace and comments.
CSSMin::encodeImageAsDataURI() should be smart about this in two ways:
- Not base64-encode plain ASCII text, just escape quotes and backslashes
- Strip whitespace and comments (and possibly apply other transformations)