add optional separator support to stringify