Reorder params to getSVG to make it match getPixmap
Do URI decoding in getSVG function, so getSVG just returns a promise
that evaluates to an SVG string