fix JSON keys with spaces