Remove the use of null char for non printable chars