Support Chinese in URL

Tried to fix the problems occured when I pass Chinese parameters in URL to slicer server.

Basically, I just modified the source code according to the error log, changed the encoding type of incoming parameters and use unicode() method instead of str() to generate strings.

This update may support other languages, but I haven't test yet.

Thanks in advance for your review.