Convert any file content to a data url