Sanitizes keys in JSON output.