Fixed two deluge bugs.

* The deluge client was not working if, for some reason, the https
certificate was invalid
* The label was always converted to lowercase