cleanup: break up the term codec files
list_to_buf: write results to a static buf