Make keys sane