Remove characters that don't play nicely with JSON.