Fixes #182 - encodes the url to utf-8 for hashing