Fix stack overflow in TeX due to babel weirdness