A man has been charged with threatening the prime minister, prompting a call for a cooling of the fractious political debate.