force_bytes() turns None into the byte string b"None". Since ctypes.c_char_p() also accepts None, we can bypass force_bytes() if target is None. Backport of d77762de038d1ab46cdcda2b7202d36c80956e25 from main