Removed call to encodeSVGDatauri() from coa.js and added test case.
encodeSVGDatauri() is called within the optimize() function, but was being called a second time in coa.js when SVGO was run from the command line, giving a doubly-encoded, incorrect result.
This PR removes the call from coa.js and adds a test case.
Resolves #2048 resolves #997.
Actually, for current web browsers the only symbol needs to be escaped is “#”. Maybe it worth optimize data uri encoding…
Optimizing encodeSVGDatauri() would be a separate issue. This PR only addresses removing the duplicate call, which, as described in the related issue, completely breaks the feature from the command line.
True. Just noted here.