Optimal Encoding and Decoding for Point Process Observations: an Approximate Closed-Form Filter