Simplify gis_encode. Now works with the location_data from contexts...more
testing needed, but so far so good :)