try to figure out the encode issue for yaml