Would it be possible to use text encoding for the SVG, rather than base64? Create it as a completely readable string, then %xx encode any non URL-safe characters.

OR: use a L.divIcon containing the SVG, avoiding all use of "data:" URIs?