Mars Curiosity rover put into 'safe mode' after glitch