Fix XML rstripping in specs