I don’t want to play smartass, but I can’t resist to point out that I offered to fix this bug before it arose:
https://sourceforge.net/p/gramps/mailman/message/36755775/
https://sourceforge.net/p/gramps/mailman/message/36760105/
But certainly another reason to switch from blobs to JSON