Compositions and methods for treating viral infections