added a chunk_printable() function (replaces sanitize_chunk)