Fix: TypeError

Fix: TypeError: POST data should be bytes or an iterable of bytes. It cannot be of type str.