It's possible that this will work for data URLs, but it's completely untested.