btoa() does stupid things when you use in on things that aren't strings.