URL encode before hashing