Recognition of nascent polypeptides for targeting and folding