Yes, definitely, this is was a big mistake on my part, i would have seen it if test cases ran through this code.

maybe DeadSimpleCms::Utils.csserize(string) or something like that? is there anything like that in the library?