After you download it, read it into a string, perform the replace and save it. Then import it.