Stabilization of antibody fragments in adverse environments