### Question:
SvgDataUriGenerator { public static String encodeUtf8(final String dataUriDecoded) { return SVG_DATA_URI_UTF8 + UriUtils.encode(dataUriDecoded).replace("#", "%23"); }  static String encodeUtf8(final String dataUriDecoded); static String encodeBase64(final String dataUriDecoded); @SuppressWarnings("unchecked") String generate(final SafeUri svgUri); String generate(final SafeUri svgUri,
                           final Collection<SafeUri> svgDefs,
                           final Collection<String> validUseRefIds); static final String SVG_CONTENT_TYPE; static final String SVG_DATA_URI_BASE64; static final String SVG_DATA_URI_UTF8; }### Answer:
@Test public void testEncodeUTF8() { assertEquals(SvgDataUriGenerator.SVG_DATA_URI_UTF8 + "%3C?xml", SvgDataUriGenerator.encodeUtf8("<?xml")); assertEquals(SvgDataUriGenerator.SVG_DATA_URI_UTF8 + "%3Csvg%20id=%22Layer_Main%22%20", SvgDataUriGenerator.encodeUtf8("<svg id=\"Layer_Main\" ")); assertEquals(SvgDataUriGenerator.SVG_DATA_URI_UTF8 + "%3Cuse%20xlink:href=%22%23Layer_3%22", SvgDataUriGenerator.encodeUtf8("<use xlink:href=\"#Layer_3\"")); }