Encode data URIs properly making it work in Firefox too.