Encoding password and fixing a bug in PyCQ.pyw.