getString and toString in keys, and pairs from enc