Sanitise Gems file