Ouuch. Good thing you didn't have jeans on, denim fabric's a lot tougher.
I always roll my leg up either higher than my knee or calf muscle, depending on how tight the pants are. Or you can get one of those leg bands. When you said you fell trying to get your foot out, were these clips or clipless?
I've never been undressed by bike, must've been embarassing hehe.