Fix bug when link/guid contains characters not in ascii by encoding the keys as utf-8