Only the virus encodes the enzyme that catalyzes the conversion. Since the virus is found in infected cells, these are the only cells that can produce the enzyme. If this were not the case, then normal cells would also be affected by the nucleoside analog.