Fix ctypes tests to avoid implicit bytes-unicode conversion
20 files changed