I would use one of the 4 gates in a 74HCT02 IC to level shift the signal. There is a thread about doing the same thing to control a laser from a Duet WiFi.