Bugfix in encoding of GET and POST parameters