Structural basis for unique mechanisms of folding and hemoglobin binding by a malarial protease.