Text this: Solving Two-Stage Programs with Endogenous Uncertainty via Random Variable Transformation.