Handle encodings and empty objects.