macros to define a template converter helper functions + sharing the multi boundary/segment unicode macro