Update IO.R

fix in base64 encoding