For me the simplest way (but requires a unix-like enviroment):
NULL_CHAR=$(head -c1 /dev/zero) # check value with: echo -n "$NULL_CHAR"|hexdump -C 00000000 00 |.| 00000001