quote: add ~ to safe characters