This also is quite handy for inlining SVGs in CSS, although I believe you have to mark the encoding as utf-8.