fixed rewrite url for data URIs