FIX MAM quote hack.

MAM now quotes ' correctly but fails to quote \ correctly.
Make sure we strip non-ASCII.