Encode and decode geohashes