She says imprisoned foreigners include immigrants who were legal residents but lost their legal status after their convictions .