Fix text encoding for Connection#wait_for_notify