Some defensive coding for geo encoder.