It’s possible to create invalid folder names using the system.tag.addTag function. Valid folder names should only include characters, numbers, underscore, dash, and spaces but the system.tag.addTag function will create a folder with any name you give it and it’ll actually add it to the tag database! I did not check if it’s possible the create invalid tag names.
Thanks for catching this. I’ve made a bug ticket.