fix to issue1 to be tested
increased debug and changed handling of special unicode characters
url quoting of each element of the dictionary, avoid problems with openelec [issue 1]