Text this: Global Dynamics and Optimal Control of a Viral Infection Model with Generic Nonlinear Infection Rate