Allow UTF-8 encoded URI's to be fetched.

Allow's already encoded UTF-8 URI's to be returned as is. Also removes the encoding if the theme is not UTF-8.