Create and download a file using data URI See http://stackoverflow.com/questions/283956