make mime type optional in data URIs
added test for data uri without mime type