Support URL creation from unicode strings. Thanks to Leonid Shvechikov.