The star formation rate cookbook at 1 < z < 3: Extinction-corrected relations for UV and [OII]λ3727 luminosities