Product approximation for nonlinear Klein-Gordon equations