Fix yaml and encoding errors.