for some bizarre reason, some versions of Darwin don't like the fact that we use C.disableEscaping in Goland, but wrapping this up in a C function seems to make them happy.