replace base64 for localStorage (decode was broken)