What are the alternatives? The minute you get into using code for these things, cleverness begins to turn configuration repos into something you have to debug before editing.
The solution is to always quote strings.
[1] https://medium.com/@lefloh/lessons-learned-about-yaml-and-no...