Replace JSON.stringify with Y.dump for logging.