A Wong-Zakai theorem for stochastic PDEs