a bit of marpa_cffi sanitizing. refucktoring stuff into lemon_utils. bet its gonna bite me.