Make get_signature support unicode characters by encoding to utf-8 instead of ascii.