Location selector: fix crash with unicode instances returned from json.loads