Why do you not just use a 47k resistor in series with the input pin. The internal diodes in the pic will clamp the input voltage anyway. No need for zeners or voltage dividers.
I've used this method too but also included a small filter cap to ground at the input pin for noise.
The DEBUG section of the PBP manual shows this as acceptable where +-25V signals are possible to the input.
Bookmarks