item: Rename print_* functions to writestr_*

These functions write into strings, make the name reflect that.