change to a more compact base64 encoder/decoder
remove XMLSerializer shim, since IE9 has it built in