Parse kwargs with YAML, Fix #5224