France has urged Middle Eastern countries to end calls for a boycott of its goods in protest at President Emmanuel Macron's defence of the right to show cartoons of the Prophet Muhammad.