better cross distribution string escaping