I found that my edits were affecting the wrong file (I was working on a
cached file instead, there were multiple copies of the code), and so my
string modification doesn't actually work, it results in the same segfault.
Changing the function to q_quark_from_string() works.