Fix unicode crash in urlrewriting plugin.

git-svn-id: http://svn.flexget.com/trunk@3234 3942dd89-8c5d-46d7-aeed-044bccf3e60c