Force strings to binary encoding in dict2int.

Add attribut readers to Packet for password, req_packet, and resp_packet.