Check if a String/Buffer is SVG