In generated C, only format printable characters as char literals