Close #1777
Data-uri function used single quote ' around generated url, but did not
encoded it in generated string. Switched it to " which is encoded.