URIEncode SVG before base64 encoding it