Ensure that key is a string before compare

Fixes boolean indexing on GeoDataFrame